﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfMqttAnalyzeApp.Model
{
    public class OperateResult
    {
        public EOperationType Operation;

        public int RtnCode;

        public dynamic RtnData;
    }

    public enum EOperationType
    {
        Connect = 1,
        Disconnect = 2,
        Subscribe = 3,
        Unsubscribe = 4,
        SendMsg = 5,
        ReceiveMsg = 6,
        ClearContent = 7,

        AddTemplate = 101,
        SaveTemplate = 102,
        RemoveTemplate = 103,
        UseTemplate = 104,

        AddCategory = 105,
        OpenCategory = 106,
        RemoveCategory = 107,
        DisableCategory = 108,
        EnableCategory=109,

        GetTemplates=110,
        GetCategories=111,

        AppStart=201,
        AppExit=202
    }

}
